﻿@model lindyaka.Models.Administration.UserAccountAssociateRoles

@{
    ViewBag.Title = string.Format("Role Assoication: {0}", Model.Email);
    Layout = "~/Areas/Administration/Views/Shared/_Layout.cshtml";
}

<div>

    <h2>@ViewBag.Title</h2>

     @using (Html.BeginForm("Create", "UserAccountRoles", FormMethod.Post, new { id = Model.UserAccountId }))
    {
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>User Account Role</legend>

            <div class="editor-label">
                @Html.LabelFor(model => model.Roles)
            </div>
            <div class="editor-field">
                @Html.DropDownList("RoleId", Model.Roles)
                @Html.ValidationMessageFor(model => model.Roles)
            </div>

            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>
    }

    <div>
        @Html.ActionLink("Back to List", string.Empty, new { controller = "UserAccountRoles", id = Model.UserAccountId })
    </div>

</div>

